<template>
  <h3>事件Event对象器</h3>
  <button @click="addCount">单击</button>
  <p>{{ count }}</p>
</template>
<script>
export default {
  data() {
    return {
      count: 0
    }
  },
  methods: {
    // Event对象
    addCount(e) {
      console.log(e)
      // Vue中的Event对象，就是原生JS的Event对象
      e.target.innerHTML = "Add" + this.count
      this.count += 1
    }
  }
}
</script>